import request from '@/utils/request'

export function getAllCategory() {
    return request({
        url: '/api/v1/category/all',
        // url: './data/allcategory.json',
        method: 'get'
    })
}

export function getChild(id=0) {
    return request({
        url: `/api/v1/category/${id}`
        // url: './data/onecategory.json'
    })
}

export function mockLeft() {
    return request({
        url: './data/allcategory.json',
        method: 'get'
    })
}

export function mockRight() {
    return request({
        url: './data/onecategory.json',
        method: 'get'
    })
}
